<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Gerak - gerak</title>
<script type='text/javascript' src='jquery.js'></script>
<script type='text/javascript'>
	$(document).ready(function() {
		$('input[name="b_atas"]').click(function() {
			$('#actor').animate(
					{'top' : '-=30'},'slow'
			);
		});
		$('input[name="b_bawah"]').click(function() {
			$('#actor').animate(
					{'top' : '+=30'},'slow'
			);
		});
		$('input[name="b_kanan"]').click(function(){
			$('#actor').animate(
					{'left' : '-=30'},'slow'
			);
		});
		$('input[name="b_kiri"]').click(function(){
			$('#actor').animate(
					{'left' : '+=30'},'slow'
			);
		});
	});
</script>
</head>
<body>
	<table>
		<tr>
			<td></td>
			<td><input type='button' name='b_atas' value='^'></td>
			<td></td>
		</tr>
		<tr>
			<td><input type='button' name='b_kanan' value='<'></td>
			<td></td>
			<td><input type='button' name='b_kiri' value='>'></td>
		</tr>
		<tr>
			<td></td>
			<td><input type='button' name='b_bawah' value='V'></td>
			<td></td>
		</tr>
	</table>

	<div id='move_area' style='width: 400px; height: 400px;'>
		<div id='actor' style='position:absolute; background: gray; width: 100px; height: 100px;'></div>
	</div>
</body>
</html>